README FILE for "Price Setting and Rapid Technology Adoption: the case of the PC Industry" by Adam Copeland and Adam Shapiro


NPD Data
The NPD data is propietary and can be purchased from the NPD group (www.NPD.com)
variable_names.do performs conversion from the descriptive variables names (given to us by NPD) to the shortened variable names used in  the stata programs.


STATA files (was run on Stata version 14)
These programs make tables and figures, where the name of the file indicates the placement in the paper (e.g. Figure1.do makes Figure 1). 



MATLAB files (run on version Matlab11b)
These programs are used to solve the model introduced and discussed in sections 4-6 of the paper.

The main version of the model considers the competitive case. To solve the competitive case, run 
the MATLAB program <<main_prg_competitive.m>>. This program calls a number of other M files, which
are included here. Further, the program calls Matlab's FMINSEARCH function.

For the counterfactual where we consider the monopoly case, we have a second set of programs. To 
solve the monopoly case, run the MATLAB program <<main_prg_monopoly.m>>. This program calls a number
of other M files, which are included here.

The output from running main_prg_competitive is displayed in figure 6, and tables 5-7. To get the
counterfactual results related to different growth rates, you need to re-run main_prg_competitive
for the different exogenous growth rates. THen combine the output to get figure 7.

The output from running main_prg_monopoly is displayed in table 8.

model_figure.m generates figure 6, based on the parameter values.